# $NetBSD: Makefile,v 1.33 2008/12/18 14:58:07 hira Exp $

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../meta-pkgs/xfce4/Makefile.common"

DISTNAME=		xfce4-panel-${XFCE4_VERSION}
CATEGORIES=		x11
COMMENT=		Xfce panel

PKGCONFIG_OVERRIDE=	libxfce4panel/libxfce4panel-1.0.pc.in
PTHREAD_AUTO_VARS=	yes

PKG_SYSCONFSUBDIR=	xdg/xfce4/panel
EGDIR=			${XFCE4_EGBASE}/panel

USE_DIRS+=	xdg-1.4
MAKE_DIRS+=	${PREFIX:Q}/include/xfce4 ${PREFIX:Q}/lib/xfce4
MAKE_DIRS+=	${XFCE4_EGBASE:Q} ${PREFIX:Q}/share/xfce4
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc ${PREFIX:Q}/share/xfce4/doc/C
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc/C/images
OWN_DIRS+=	${PKG_SYSCONFDIR:Q}
OWN_DIRS+=	${PREFIX:Q}/libexec/xfce4/panel-plugins
# The following are not used in this pkg, but here is a good place to rmdir them
MAKE_DIRS+=	${PREFIX:Q}/libexec/xfce4
OWN_DIRS+=	${PREFIX:Q}/share/xfce4/panel-plugins

.for f in clock-14.rc launcher-10.rc launcher-7.rc launcher-8.rc launcher-9.rc \
	panels.xml systray-4.rc xfce4-menu-5.rc
CONF_FILES+=	${EGDIR:Q}/${f} ${PKG_SYSCONFDIR:Q}/${f}
.endfor

.include "../../devel/libwnck/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/libxfce4gui/buildlink3.mk"
.include "../../x11/libxfce4util/buildlink3.mk"
.include "../../x11/startup-notification/buildlink3.mk"
.include "../../x11/xfce4-exo/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
